package neca.tmazo.modelo;

import neca.tmazo.datasets.Dataset;
import neca.tmazo.vista.WindowItems;
/**
 * @author neca
 * 
 * Ventana de error fatal
 *
 */
public class VentanaModeloErrorFatal extends VentanaModelo {

	private String errorText;
	
	public VentanaModeloErrorFatal(Aplicacion app, String errorText) {
		super(app);
		this.errorText=errorText;
	}

	@Override
	public void onMenuItemSelected(int label, Dataset args) {
		switch (label) {
		case WindowItems.ERRORFATAL_BOTON_SALIR:
			this.onExit();
			break;
		}
	}
	
	@Override
	public void init() {
		this.app.getVistaFacade().openWindowErrorFatal(this, this.errorText);
	}

	@Override
	public void close() {
		// TODO Auto-generated method stub
		
	}

}
